import { ref } from 'vue'
import { useEventListener } from './useEventListener'

export function useClick() {
    const x = ref(0)

    useEventListener(window, 'click', (event) => {
        x.value = event.target.value
    })

    return { x }
}